package com.itheima.d4_jdk8_time;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        Date d1 = new Date();

        System.out.println(d1);


        LocalDate ld = LocalDate.now();
        LocalTime lt = LocalTime.now();
        LocalDateTime ldt = LocalDateTime.now();




        System.out.println(ld);
        System.out.println(lt);
        System.out.println(ldt);
    }
}
